<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!--meta-->
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no;">
<title>{{$pageTitle}}-{{$site[title]}}</title>
<style>*{padding:0;margin:0;} body,.container{max-width: 100% !important;}</style>

<?PHP echo $this->Combinator->less(); ?>
{{$this->Html->css(array('font-awesome.min.css','ui-customer.css',));}}
<style>
@charset "utf-8";
/*css reset*/
body{background:#f3f3f3;}
body,button,input,select,textarea{ font-size:14px;}
h1,h2,.Content-title{font-size:20px;}
h3{font-size:20px;}
a{text-decoration:none;color:#31497c;}
a.red{text-decoration:none;color:#ff0000;}
a.black{text-decoration:none;color:#000000;}
a.green{text-decoration:none;color:#1ca446;}
a:hover{text-decoration:none; }
img,.Content-body img { border:0;vertical-align:middle;max-width:95%;margin: 5px 5px;}
.Content-body{padding:0;}
button,input,select,textarea{font-size:100%; vertical-align:middle}
header, footer, article, section, nav, menu, hgroup,time{display: block;clear:all; }
.wrap{width:98%;line-height:18px;}
.navbar {margin-bottom: 0px;}
.panel {border:0;}
.panel-body {padding:0px;}
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td{padding:3px;}
#maincontent{max-width:560px;margin:10px auto;background: transparent;box-sizing: border-box;padding: 15px 0;}
.breadcrumb,.ui-portlet-header{padding-left: 0px;}
hr,.ui-portlet{margin:5px 0;}
hr{border-top: 1px solid #999;}
.nav-pills > li >a{    padding: 5px 10px !important;   margin-right: 10px !important;}
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative;
    min-height: 1px;
    padding-left: 5px;
    padding-right: 5px;
}
.row,.form-horizontal .form-group {
    margin-left: -5px;
    margin-right: -5px;
}
.question-options{margin:20px 0;color:#333;}
table{width:100%;border-spacing:2px;border-collapse: separate;margin:0px;padding:0px;}
tr{background-color: #fafafa;}
tr.active{background-color: #d9d9d9;}
tr.correct{background-color: #dff0d8;border-color: #d6e9c6;color: #468847;}
td,th{padding:5px 10px;}
label{cursor: pointer;}
.btn-primary{background-color: #0c9794;font-size:20px;color:#FFF;}
h3,h4.ui-state-default{color:#0c9794;line-height: 1.6em;}
.ui-widget-content {
    background-color: transparent;
    border: 0 none;
}
.ui-state-default{border: 0 none;}
input[type="radio"], input[type="checkbox"]{display:none;}
</style>


<script type="text/javascript">
var BASEURL = "{{APP_SUB_DIR}}";
var ADMIN_BASEURL = BASEURL+"/manage";
</script>
<noscript>
请开启您浏览器的JavaScript选项
</noscript>
</head>
<body>

	
	<div id="maincontent"  style="padding:15px;">
		<h3>{{if $userinfo}}{{$userinfo['User']['username']}}{{else}}您{{/if}}参与测验的得分是：{{$score}}</h3>
		<div id="questionnaire-detail">	
			<p>总计{{$result['ExamResult']['total_num']}}题，答对{{$result['ExamResult']['correct_num']}}，答错{{$result['ExamResult']['error_num']}}题</p>
			<p>开始答题时间：{{$result['ExamResult']['created']}}</p>
			<p>结束答题时间：{{$result['ExamResult']['updated']}}</p>
			<p>总计答题时间：{{format_time(strtotime($result['ExamResult']['updated'])-strtotime($result['ExamResult']['created']))}}</p>
		</div>
		<a class="btn btn-block btn-primary" href="/questionnaires/exam/{{$Questionnaire['Questionnaire']['id']}}">参与答题</a>
		<p><br></p>
		<p>试卷内容：</p>
		<hr/>
		<h3>{{$Questionnaire['Questionnaire']['name']}}</h3>
		<div id="survey_question_list">
			{{$question_list}}
		</div>

	</div>

</body>
</html>